-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-8119][Scheduler]Do not let Spark set total executors when executor fails #6662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #34244 has finished for PR 6662 at commit
|
|
Test build #34242 has finished for PR 6662 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain how this method is called with dynamic allocation disabled?
The only call chain I can find starts with ExecutorAllocationManager, which is not instantiated when dynamic allocation is off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can do sc.requestTotalExecutors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean:
private[spark] override def requestTotalExecutors
I don't see any calls to it, and given it's private[spark]...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, I meant sc.requestExecutors, which eventually calls the method here.
|
@SaintBacchus can you elaborate on the description a little? I'm not sure if I follow what the symptoms are and how you reproduced them. |
|
@andrewor14 @vanzin I draw a simple call stack, as this: If the
A may be a Streaming application. |
|
@andrewor14 did I describe the scenario clearly? can you review it again? |
|
I see. The issue is that the AM forgets about the original number of executors it wants after calling I think the problem is that |
|
I have updated the description on the JIRA. However, this patch is definitely not the correct fix. The user should be able to call I'll submit a fix separately. In the mean time, could you close this PR? Thanks for your work @SaintBacchus. |
|
OK |

DynamicAllocationwill set the total executor to a little number when it wants to kill some executors.But in no-DynamicAllocation scenario, Spark will also set the total executor.
So it will cause such problem: sometimes an executor fails down, there is no more executor which will be pull up by spark